package cn.edu.javaweb.service;

import java.util.List;

import cn.edu.javaweb.javabean.User;
import cn.edu.javaweb.utils.DBUtil;



public class AdminVolunteerService {
	public List<User> getVolunteer(){
		DBUtil db;
		
		db=new DBUtil(); //建创对象 搭桥配置初始化
		String sql="select * from user where ident=0 and roster=1";  //写入sql语句
//			System.out.println(sql);
		List list=db.getList(sql);
		
		return list;
	}
}
